# 该镜像需要依赖的基础镜像
FROM apache/beam_java17_sdk:latest
# 将当前目录下的jar包复制到docker容器的/目录下
ADD ./target/xiu-travel-open-1.0.0.jar /xiu-travel-open-1.0.0.jar
# 声明服务运行在8080端口
EXPOSE 8080
# 指定docker容器启动时运行jar包
ENTRYPOINT ["java", "-jar","/xiu-travel-open-1.0.0.jar"]
# 指定维护者的名字

MAINTAINER qianlanyuyun
#docker build  -t xiu-travel-open:1.0.0 .

#docker login --username=qianlanyuyun registry.cn-hangzhou.aliyuncs.com
#docker tag da968d028a1e979fadd0cff3da6b2bd8cfa9048395a39f500a611cf21019f799 registry.cn-hangzhou.aliyuncs.com/qianlanyuyun/xiu-travel-open:1.0.0
#docker push registry.cn-hangzhou.aliyuncs.com/qianlanyuyun/xiu-travel-open:1.0.0
#docker run -d --name xiu -p 8080:8080 docker pull registry.cn-hangzhou.aliyuncs.com/qianlanyuyun/xiu-ec:1.0.0
#docker pull registry.cn-hangzhou.aliyuncs.com/qianlanyuyun/xiu-travel-open:1.0.0

docker run  -p 9000:9000 --name minio \
 -d --restart=always \
 -e MINIO_ACCESS_KEY=minio \
 -e MINIO_SECRET_KEY=minio@123 \
 -v /usr/local/minio/data:/data \
 -v /usr/local/minio/config:/root/.minio \
  minio/minio server /data  --console-address ":9000" --address ":9090"

docker run  -p 8080:8080 --name aitodo -d registry.cn-hangzhou.aliyuncs.com/qianlanyuyun/xiu-travel-open:1.0.0
./keytool -importkeystore -srckeystore C:\迅雷下载\aitodo.cn_1695303362\IIS\fullchain.pfx -destkeystore qianl.jks -srcstoretype PKCS12 -deststoretype JKS
./keytool -importkeystore -srckeystore C:\迅雷下载\aitodo.cn_1695303362\其他证书\qianl.pfx -destkeystore C:\迅雷下载\aitodo.cn_1695303362\其他证书\qianl.jks -srcstoretype PKCS12 -deststoretype JKS


$ keytool -import -noprompt -file C:\迅雷下载\aitodo.cn_1695303362\其他证书\fullchain.pem -keystore truststore.jks -storepass qianl0.0
Certificate was added to keystore

keytool --list -keystore truststore.jks -storepass qianl0.0

./openssl pkcs12 -export -in C:\迅雷下载\aitodo.cn_1695303362\其他证书\fullchain.pem -inkey C:\迅雷下载\aitodo.cn_1695303362\其他证书\privkey.key -out keystore.p12 -passout pass:qianl0.0

keytool -importkeystore -srckeystore keystore.p12 -srcstoretype PKCS12 -destkeystore keystore.jks \
   -srcstorepass qianl0.0 -deststorepass qianl0.0

  ./openssl  pkcs12 -export -out C:\迅雷下载\aitodo.cn_1695303362\其他证书\qianl.pfx -in C:\迅雷下载\aitodo.cn_1695303362\其他证书\fullchain.pem -inkey C:\迅雷下载\aitodo.cn_1695303362\其他证书\privkey.key
